<?php
	include "../../public/commom/config.php";
	include "../../public/commom/commom.php";
	
	if($_GET) {
		$shop_id = $_GET["id"];
		
		
		if($_SESSION["shop"][$shop_id]["num"] > 1) {
			$_SESSION["shop"][$shop_id]["num"]--;
			
			mysqli_close($conn);
			
			header("Location: ./index.php");
		}else {
			mysqli_close($conn);
			
			header("Location: ./index.php");
		}
		
	}
?>